<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/cms/group/addgroup" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>
<body>
  <div class="page">
    <div class="page-hd">
      <h1><if condition="isset($res)">修改分组<else />添加分组</if></h1>
    </div>
    <div class="form">
      <form id="J_form" action="{:URL('cms/Group/doaddGroup')}" method="post">
        <input type="hidden" value="{$res.id}" name="id" />
        <input type="hidden" value="{$siteid}" name="siteid" />
        <input type="hidden" value="{$type}" name="type" />
        <dl class="kv">
          <dt>
            <label>分组名称：</label>
          </dt>
          <dd>
            <input class="input-text" type="text" name="name" id="name" value="{$res.name}" required />
            <div class="kv-error"></div>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>分组描述：</label>
          </dt>
          <dd>
            <textarea rows="5" cols="100" name="description">{$res.description}</textarea>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>{$Think.lang.是否开启}：</label>
          </dt>
          <dd>
            <label>
              <input class="s-ck" name="status" type="radio" value="1" <neq name="res.status" value="0">checked</neq>>开启</label>
            <label>
              <input class="s-ck" name="status" type="radio" value="0" <eq name="res.status" value="0">checked</eq>>关闭</label>
            <p class="tip">选择开启后，编写文章中显示</p>
          </dd>
        </dl>
        <div class="actions">
          <if condition="isset($res)">
            <input class="btn btn-y" type="submit" value="修改" />
            <else />
            <input class="btn btn-y" type="submit" value="添加" />
          </if>
          <input class="btn btn-n" type="button" value="取消" onclick="javascript:history.go(-1);" />
        </div>
      </form>
    </div>
  </div>
</body>
</html>
